JMExecStaticMethodInContext
Executes a static Java method in a given AWT context thread using the Java Runtime Interface (JRI).
OSStatus JMExecStaticMethodInContext ( JMAWTContextRef context, JRIClassID classID, JRIMethodID methodID, UInt32 argCount, JRIValue args[]);
context- The AWT context in whose thread you want the method to execute.
classID- The class ID of the class that contains the method.
methodID- The ID of the method.
argCount- The number of arguments in the method
args[]- The argument list.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
Unless you have a particular reason to access the Java Runtime Interface, you should instead make calls to the Java Native Interface, which provides similar functionality.If you want to execute a nonstatic Java method using the JRI, you should call the
JMExecMethodInContextfunction instead.You can find documentation on the Java Runtime Interface (JRI) at the Web page
http://developer.netscape.com/
SEE ALSO
TheJMExecJNIMethodInContextfunction.The
JMExecJNIStaticMethodInContextfunction.